package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账单记录对象 bill_record
 * 
 * @author ruoyi
 * @date 2023-03-17
 */
public class BillRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 账单归属年月 */
    @Excel(name = "账单归属年月")
    private String statisticMonth;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 收支类型：2-支出，1-收入 */
    @Excel(name = "收支类型：2-支出，1-收入")
    private Integer incomeType;

    /** 来源：1-han ,2-an，0-公共 */
    @Excel(name = "来源：1-han ,2-an，0-公共")
    private Integer source;

    /** 标签 */
    @Excel(name = "标签")
    private String label;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long sort;

    /** 收支详情类型：11-工资收入，12-其他收入;21-信用卡支出，22-房贷支出，23-其他贷款支出，29-其他支出 */
    @Excel(name = "收支详情类型：11-工资收入，12-其他收入;21-信用卡支出，22-房贷支出，23-其他贷款支出，29-其他支出")
    private Integer incomeDetailType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStatisticMonth(String statisticMonth) 
    {
        this.statisticMonth = statisticMonth;
    }

    public String getStatisticMonth() 
    {
        return statisticMonth;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setIncomeType(Integer incomeType) 
    {
        this.incomeType = incomeType;
    }

    public Integer getIncomeType() 
    {
        return incomeType;
    }
    public void setSource(Integer source) 
    {
        this.source = source;
    }

    public Integer getSource() 
    {
        return source;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setIncomeDetailType(Integer incomeDetailType) 
    {
        this.incomeDetailType = incomeDetailType;
    }

    public Integer getIncomeDetailType() 
    {
        return incomeDetailType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("statisticMonth", getStatisticMonth())
            .append("amount", getAmount())
            .append("incomeType", getIncomeType())
            .append("source", getSource())
            .append("label", getLabel())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("sort", getSort())
            .append("incomeDetailType", getIncomeDetailType())
            .toString();
    }
}
